package com.terrace.web.tagext.easyui.model;

import java.io.Serializable;

/**
 * 表格树模型
 * @author jiangyg
 *
 */
public class TreeGridModel implements Serializable {
	
	private static final long serialVersionUID = -4037516876169363514L;
	
	/**
	 * Class
	 */
	private Class<?> cls;
	
	/**
	 * 树展开状态--默认关闭
	 */
	private boolean state = false;

	/**
	 * 父集字段
	 */
	private String parentField;
	
	/**
	 * 子集字段
	 */
	private String childrenField;
	
	/**
	 * 前面的小图标样式
	 */
//	private String iconClsField;

	public TreeGridModel() {
		super();
	}

	public TreeGridModel(Class<?> cls, String childrenField) {
		super();
		this.cls = cls;
		this.childrenField = childrenField;
	}

	public TreeGridModel(Class<?> cls, boolean state, String childrenField) {
		super();
		this.cls = cls;
		this.state = state;
		this.childrenField = childrenField;
	}

	public TreeGridModel(Class<?> cls, String parentField, String childrenField) {
		super();
		this.cls = cls;
		this.parentField = parentField;
		this.childrenField = childrenField;
	}

//	public TreeGridModel(Class<?> cls, String parentField, String childrenField, String iconClsField) {
//		super();
//		this.cls = cls;
//		this.parentField = parentField;
//		this.childrenField = childrenField;
//		this.iconClsField = iconClsField;
//	}

	public Class<?> getCls() {
		return cls;
	}

	public void setCls(Class<?> cls) {
		this.cls = cls;
	}

	public boolean isState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public String getParentField() {
		return parentField;
	}

	public void setParentField(String parentField) {
		this.parentField = parentField;
	}

	public String getChildrenField() {
		return childrenField;
	}

	public void setChildrenField(String childrenField) {
		this.childrenField = childrenField;
	}

//	public String getIconClsField() {
//		return iconClsField;
//	}
//
//	public void setIconClsField(String iconClsField) {
//		this.iconClsField = iconClsField;
//	}

}
